package TestHeap;
import java.util.PriorityQueue;
public class test {
    public static void main (String[] args )
    {
        PriorityQueue<Integer> priorityQueue = new PriorityQueue<>();
        priorityQueue.offer(19);
        priorityQueue.offer(1);
        priorityQueue.offer(10);
        priorityQueue.offer(17);
        for(int x:priorityQueue)
        {
            System.out.println(x);
        }
    }
}
